package com.wzh.yebServe.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wzh.yebServe.pojo.Menu;
import com.wzh.yebServe.pojo.ResultBean;
import com.wzh.yebServe.pojo.Role;
import com.wzh.yebServe.pojo.User;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * @Author wzh
 * @create 2022/11/6 12:05
 * @Description:
 */
public interface IUserService extends IService<User> {

    ResultBean login(String username, String password,String code, HttpServletRequest request);

    ResultBean getInfo(String username);

    List<Role> getRoles(Integer userId);


     User getUserByUsername(String username);

    List<User> getAllUsers(String keywords);

    ResultBean updateUser(User user);

    ResultBean deleteUser(Integer id);

    ResultBean updateUserPassword(String oldPass, String pass, Integer adminId);
}
